package at.ac.tuwien.ir.model;

public class DocumentWord 
{
	private String m_word;
	private int m_termFrequency;
	private Document m_document;
	
	public DocumentWord(String _word, Document _document)
	{
		m_word = _word;
		m_termFrequency = 1;
		m_document = _document;
	}
	
	
	/*
	public void addDocument(Document document)
	{
		if(m_postingsList.containsKey(document)) {
			m_postingsList.put(document, m_postingsList.get(document) + 1);
		} else {
			m_postingsList.put(document, 1);
		}
	}
	
	public Set<Document> getPostingsList()
	{
		return m_postingsList.keySet();
	}
	
	public void increaseDocumentFrequency()
	{
		m_documentFrequency++;
	}
	*/
	
	public String get_word() {
		return m_word;
	}

	public void set_word(String m_word) {
		this.m_word = m_word;
	}
	
	public int get_termFrequency()
	{
		return m_termFrequency;
	}

	public void increaseTermFrequency()
	{
		m_termFrequency++;
	}
	
	public Document getDocument()
	{
		return m_document;
	}

	/*
	public int get_documentFrequency() 
	{
		return m_documentFrequency;
	}

	public void set_documentFrequency(int m_documentFrequency) 
	{
		this.m_documentFrequency = m_documentFrequency;
	}
	*/
	
	/*public double get_documentWeight(int documentCount, Document document)
	{
		return Math.log10(1.0d + m_postingsList.get(document)) + Math.log10((double)documentCount / (double)m_documentFrequency); 
	}*/

	

}
